package xin.nick.demo.config;

import org.springdoc.core.GroupedOpenApi;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author Nick
 * @since 2024/4/12
 */
@Configuration
public class DemoServiceSpringDocConfig {

    @Bean
    public GroupedOpenApi getDemoServiceApi() {
        return GroupedOpenApi.builder()
                .group("Demo模块_接口信息")
                .packagesToScan("xin.nick.demo.controller")
                .pathsToMatch("/**")
                .build();
    }

}
